/*
 * @Descripttion: 
 * @version: 
 * @Author: 侯勇
 * @Date: 2022-10-24 21:00:47
 * @LastEditors: 侯勇
 * @LastEditTime: 2022-10-25 22:04:23
 */

import styled from 'styled-components';

export const HeaderWrapper = styled.div`
height:75px;
font-size:14px;
background-color:#242424;
color:white;
.content{
    height:70px;
    display: flex;
    justify-content: space-between;
}
.contentLine{
    height:5px;             //不加;样式都不生效牛
    background-color:red;
}
`
/* 左 */
export const HeaderLeft = styled.div`
display:flex;
.logo{
    display:block;  //a元素默认不能设置宽度和高度，不必须通过
    width:176px;
    height:69px;
    background-position:0 0;
    text-indent:-9999px;
};
//图标
    .select-list{
        display:flex;
        line-height:75px;
        color:#fff;
       
        .select-item{
           position:relative;
           a{
             display:block;
            padding:0 20px;
            color:#ccc;
           };
           //选择器：找到最后一个元素（结构伪类）
           :last-of-type a {
             position: relative;
             //伪元素
                ::after {
                    position: absolute;
                    content: "";        //伪元素一定要加content
                    width: 28px;
                    height: 19px;
                    background-image: url(${require("@/assets/img/sprite_01.png")});//引入精灵图要当成模块去引入
                    background-position: -190px 0;
                    top: 20px;
                    right: -15px;
                }       
            }
          &:hover a, a.active {
            color: #fff;
            background: #000;
            text-decoration: none;
        }
        .active .icon {
          position: absolute;
          display: inline-block;
          width: 12px;
          height: 7px;
          bottom: -1px;
          left: 50%;
          transform: translate(-50%, 0);
          background-position: -226px 0;
        }
    };
}`
/* 右*/
export const HeaderRight = styled.div`
display: flex;
  align-items: center;
  color: #ccc;
  font-size: 12px;


  .search {
    width: 158px;
    height: 32px;
    border-radius: 16px;

    input {
      &::placeholder {
        font-size: 12px;
      }
    }
  }

  .center {
    width: 90px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border: 1px solid #666;
    border-radius: 16px;
    margin: 0 16px;
    background-color: transparent;
  }

`